package org.example.service;

import org.apache.ibatis.annotations.Param;
import org.example.pojo.Company;
import org.example.pojo.Job;
import org.example.pojo.PageBean;

import java.util.List;

public interface CompanyService {
    void insertCompany(Company company);

    Company findCompanyById(@Param("companyId") Integer companyId);

    List<Company> selectCompanyByName(String companyName);

    PageBean<Company> getCompanyList(Integer companyId, String name, Integer pageNum, Integer pageSize);

    Company selectByCompanyId(Integer companyId);

    void updateCompany(Company company);

    Company getCompanyById(Integer companyId);

    List<Company> getCompanyJob(Integer companyId);

    Integer getCount(List<Integer> counts);

    List<Job> getTopCompany(String salary, String city, Integer minSalary, Integer maxSalary);
}
